//
// Created by Administrator on 2021/10/20.
//

#ifndef PARTJOB_C___NODE_H
#define PARTJOB_C___NODE_H
class Node {
public:
    Node() : data(0), ptrToNext(nullptr) {}

    Node(int theData, Node *newPtrToNext)
            : data(theData), ptrToNext(newPtrToNext) {}

    Node *getPtrToNext() const { return ptrToNext; }

    int getData() const { return data; }

    void setData(int theData) { data = theData; }

    void setPtrToNext(Node *newPtrToNext) { ptrToNext = newPtrToNext; }

    ~Node() {}

private:
    int data;
    Node *ptrToNext;  // Pointer that points to next node.
};
#endif //PARTJOB_C___NODE_H
